import 'package:flutter/material.dart';

class MyApp1 extends StatelessWidget {
  const MyApp1({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // 1. 导航条
      appBar: AppBar(
        title: const Text(
          'Hello Flutter',
          style: TextStyle(color: Colors.white),
        ),
        backgroundColor: Colors.pink,
        centerTitle: true,
      ),
      // 2. 主体内容区域
      body: const Center(
        child: Text(
          'Hello World!',
          textDirection: TextDirection.ltr,
          style: TextStyle(
              color: Color.fromARGB(255, 4, 4, 247),
              fontSize: 40,
              fontWeight: FontWeight.bold),
        ),
      ),
    );
  }
}
